package com.jade.generator.facade.impl;

import com.jade.generator.entity.request.GeneratorReq;
import com.jade.generator.facade.GeneratorFacade;
import com.jade.generator.utils.AutoGeneratorUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * 代码生成门面实现
 * @author Arnold
 * @version V1.0
 * @date 2021/3/16
 **/
@Slf4j
@Service("generatorFacade")
public class GeneratorFacadeImpl implements GeneratorFacade {


    @Autowired
    @Lazy
    AutoGeneratorUtils autoGeneratorUtils;

    @Override
    public void generatorCode(GeneratorReq generatorReq) {
        autoGeneratorUtils.generator(generatorReq);
    }
}